package com.woniuxy.portal.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName t_book
 */
@TableName(value ="t_book")
@Data
public class Book {
    /**
     * 
     */
    @TableId
    private Long id;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private Integer typeId;

    /**
     * 
     */
    private String publisher;

    /**
     * 
     */
    private Date publicationDate;

    /**
     * 
     */
    private String author;

    /**
     * 
     */
    private BigDecimal price;

    /**
     * 
     */
    private String detail;

    /**
     * 
     */
    private String imgSrc;

    /**
     * 
     */
    private Integer collectionCount;

    /**
     * 
     */
    private Integer storeCount;

    /**
     * 
     */
    private Integer buyCount;

    /**
     * 点击量
     */
    private Integer readCount;

    /**
     * 加上MP自动填充注解
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 加上MP自动填充注解
     */
    @TableField(fill = FieldFill.INSERT)
    private Date updateTime;

    /**
     * 
     */
    private Integer state;

    /**
     * 加上乐观锁版本号控制
     */
    @Version
    private Integer version;
}
